//
//  UIDevice+Rotation.swift
//  FastFinger
//
//  Created by mugua on 2018/6/26.
//  Copyright © 2018年 mugua. All rights reserved.
//

import Foundation
import UIKit

extension UIDevice {
    
    static func switchNewOrientation(_ orientation: UIInterfaceOrientation) {
        
        let resetOrientationTarget = orientation.rawValue
        UIDevice.current.setValue(resetOrientationTarget, forKey: "orientation")

    }
}
